package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class ActivitydetailsrecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ActivitydetailsrecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAdrnoIsNull() {
            addCriterion("adrno is null");
            return (Criteria) this;
        }

        public Criteria andAdrnoIsNotNull() {
            addCriterion("adrno is not null");
            return (Criteria) this;
        }

        public Criteria andAdrnoEqualTo(String value) {
            addCriterion("adrno =", value, "adrno");
            return (Criteria) this;
        }

        public Criteria andAdrnoNotEqualTo(String value) {
            addCriterion("adrno <>", value, "adrno");
            return (Criteria) this;
        }

        public Criteria andAdrnoGreaterThan(String value) {
            addCriterion("adrno >", value, "adrno");
            return (Criteria) this;
        }

        public Criteria andAdrnoGreaterThanOrEqualTo(String value) {
            addCriterion("adrno >=", value, "adrno");
            return (Criteria) this;
        }

        public Criteria andAdrnoLessThan(String value) {
            addCriterion("adrno <", value, "adrno");
            return (Criteria) this;
        }

        public Criteria andAdrnoLessThanOrEqualTo(String value) {
            addCriterion("adrno <=", value, "adrno");
            return (Criteria) this;
        }

        public Criteria andAdrnoLike(String value) {
            addCriterion("adrno like", value, "adrno");
            return (Criteria) this;
        }

        public Criteria andAdrnoNotLike(String value) {
            addCriterion("adrno not like", value, "adrno");
            return (Criteria) this;
        }

        public Criteria andAdrnoIn(List<String> values) {
            addCriterion("adrno in", values, "adrno");
            return (Criteria) this;
        }

        public Criteria andAdrnoNotIn(List<String> values) {
            addCriterion("adrno not in", values, "adrno");
            return (Criteria) this;
        }

        public Criteria andAdrnoBetween(String value1, String value2) {
            addCriterion("adrno between", value1, value2, "adrno");
            return (Criteria) this;
        }

        public Criteria andAdrnoNotBetween(String value1, String value2) {
            addCriterion("adrno not between", value1, value2, "adrno");
            return (Criteria) this;
        }

        public Criteria andBnoIsNull() {
            addCriterion("bno is null");
            return (Criteria) this;
        }

        public Criteria andBnoIsNotNull() {
            addCriterion("bno is not null");
            return (Criteria) this;
        }

        public Criteria andBnoEqualTo(String value) {
            addCriterion("bno =", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotEqualTo(String value) {
            addCriterion("bno <>", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoGreaterThan(String value) {
            addCriterion("bno >", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoGreaterThanOrEqualTo(String value) {
            addCriterion("bno >=", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLessThan(String value) {
            addCriterion("bno <", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLessThanOrEqualTo(String value) {
            addCriterion("bno <=", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLike(String value) {
            addCriterion("bno like", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotLike(String value) {
            addCriterion("bno not like", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoIn(List<String> values) {
            addCriterion("bno in", values, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotIn(List<String> values) {
            addCriterion("bno not in", values, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoBetween(String value1, String value2) {
            addCriterion("bno between", value1, value2, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotBetween(String value1, String value2) {
            addCriterion("bno not between", value1, value2, "bno");
            return (Criteria) this;
        }

        public Criteria andArnoIsNull() {
            addCriterion("arno is null");
            return (Criteria) this;
        }

        public Criteria andArnoIsNotNull() {
            addCriterion("arno is not null");
            return (Criteria) this;
        }

        public Criteria andArnoEqualTo(String value) {
            addCriterion("arno =", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotEqualTo(String value) {
            addCriterion("arno <>", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoGreaterThan(String value) {
            addCriterion("arno >", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoGreaterThanOrEqualTo(String value) {
            addCriterion("arno >=", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoLessThan(String value) {
            addCriterion("arno <", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoLessThanOrEqualTo(String value) {
            addCriterion("arno <=", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoLike(String value) {
            addCriterion("arno like", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotLike(String value) {
            addCriterion("arno not like", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoIn(List<String> values) {
            addCriterion("arno in", values, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotIn(List<String> values) {
            addCriterion("arno not in", values, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoBetween(String value1, String value2) {
            addCriterion("arno between", value1, value2, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotBetween(String value1, String value2) {
            addCriterion("arno not between", value1, value2, "arno");
            return (Criteria) this;
        }

        public Criteria andAdrdateIsNull() {
            addCriterion("adrDate is null");
            return (Criteria) this;
        }

        public Criteria andAdrdateIsNotNull() {
            addCriterion("adrDate is not null");
            return (Criteria) this;
        }

        public Criteria andAdrdateEqualTo(String value) {
            addCriterion("adrDate =", value, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrdateNotEqualTo(String value) {
            addCriterion("adrDate <>", value, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrdateGreaterThan(String value) {
            addCriterion("adrDate >", value, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrdateGreaterThanOrEqualTo(String value) {
            addCriterion("adrDate >=", value, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrdateLessThan(String value) {
            addCriterion("adrDate <", value, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrdateLessThanOrEqualTo(String value) {
            addCriterion("adrDate <=", value, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrdateLike(String value) {
            addCriterion("adrDate like", value, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrdateNotLike(String value) {
            addCriterion("adrDate not like", value, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrdateIn(List<String> values) {
            addCriterion("adrDate in", values, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrdateNotIn(List<String> values) {
            addCriterion("adrDate not in", values, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrdateBetween(String value1, String value2) {
            addCriterion("adrDate between", value1, value2, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrdateNotBetween(String value1, String value2) {
            addCriterion("adrDate not between", value1, value2, "adrdate");
            return (Criteria) this;
        }

        public Criteria andAdrnumberIsNull() {
            addCriterion("adrNumber is null");
            return (Criteria) this;
        }

        public Criteria andAdrnumberIsNotNull() {
            addCriterion("adrNumber is not null");
            return (Criteria) this;
        }

        public Criteria andAdrnumberEqualTo(String value) {
            addCriterion("adrNumber =", value, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrnumberNotEqualTo(String value) {
            addCriterion("adrNumber <>", value, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrnumberGreaterThan(String value) {
            addCriterion("adrNumber >", value, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrnumberGreaterThanOrEqualTo(String value) {
            addCriterion("adrNumber >=", value, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrnumberLessThan(String value) {
            addCriterion("adrNumber <", value, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrnumberLessThanOrEqualTo(String value) {
            addCriterion("adrNumber <=", value, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrnumberLike(String value) {
            addCriterion("adrNumber like", value, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrnumberNotLike(String value) {
            addCriterion("adrNumber not like", value, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrnumberIn(List<String> values) {
            addCriterion("adrNumber in", values, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrnumberNotIn(List<String> values) {
            addCriterion("adrNumber not in", values, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrnumberBetween(String value1, String value2) {
            addCriterion("adrNumber between", value1, value2, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrnumberNotBetween(String value1, String value2) {
            addCriterion("adrNumber not between", value1, value2, "adrnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeIsNull() {
            addCriterion("adrDescribe is null");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeIsNotNull() {
            addCriterion("adrDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeEqualTo(String value) {
            addCriterion("adrDescribe =", value, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeNotEqualTo(String value) {
            addCriterion("adrDescribe <>", value, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeGreaterThan(String value) {
            addCriterion("adrDescribe >", value, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeGreaterThanOrEqualTo(String value) {
            addCriterion("adrDescribe >=", value, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeLessThan(String value) {
            addCriterion("adrDescribe <", value, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeLessThanOrEqualTo(String value) {
            addCriterion("adrDescribe <=", value, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeLike(String value) {
            addCriterion("adrDescribe like", value, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeNotLike(String value) {
            addCriterion("adrDescribe not like", value, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeIn(List<String> values) {
            addCriterion("adrDescribe in", values, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeNotIn(List<String> values) {
            addCriterion("adrDescribe not in", values, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeBetween(String value1, String value2) {
            addCriterion("adrDescribe between", value1, value2, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrdescribeNotBetween(String value1, String value2) {
            addCriterion("adrDescribe not between", value1, value2, "adrdescribe");
            return (Criteria) this;
        }

        public Criteria andAdrstateIsNull() {
            addCriterion("adrState is null");
            return (Criteria) this;
        }

        public Criteria andAdrstateIsNotNull() {
            addCriterion("adrState is not null");
            return (Criteria) this;
        }

        public Criteria andAdrstateEqualTo(Integer value) {
            addCriterion("adrState =", value, "adrstate");
            return (Criteria) this;
        }

        public Criteria andAdrstateNotEqualTo(Integer value) {
            addCriterion("adrState <>", value, "adrstate");
            return (Criteria) this;
        }

        public Criteria andAdrstateGreaterThan(Integer value) {
            addCriterion("adrState >", value, "adrstate");
            return (Criteria) this;
        }

        public Criteria andAdrstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("adrState >=", value, "adrstate");
            return (Criteria) this;
        }

        public Criteria andAdrstateLessThan(Integer value) {
            addCriterion("adrState <", value, "adrstate");
            return (Criteria) this;
        }

        public Criteria andAdrstateLessThanOrEqualTo(Integer value) {
            addCriterion("adrState <=", value, "adrstate");
            return (Criteria) this;
        }

        public Criteria andAdrstateIn(List<Integer> values) {
            addCriterion("adrState in", values, "adrstate");
            return (Criteria) this;
        }

        public Criteria andAdrstateNotIn(List<Integer> values) {
            addCriterion("adrState not in", values, "adrstate");
            return (Criteria) this;
        }

        public Criteria andAdrstateBetween(Integer value1, Integer value2) {
            addCriterion("adrState between", value1, value2, "adrstate");
            return (Criteria) this;
        }

        public Criteria andAdrstateNotBetween(Integer value1, Integer value2) {
            addCriterion("adrState not between", value1, value2, "adrstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}